/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "filtropoblacion")
@NamedQueries({@NamedQuery(name = "Filtropoblacion.findByFilpoId", query = "SELECT f FROM Filtropoblacion f WHERE f.filpoId = :filpoId"), @NamedQuery(name = "Filtropoblacion.findByFilpoPregunta", query = "SELECT f FROM Filtropoblacion f WHERE f.filpoPregunta = :filpoPregunta"), @NamedQuery(name = "Filtropoblacion.findByFilpoCuestio", query = "SELECT f FROM Filtropoblacion f WHERE f.filpoCuestio = :filpoCuestio"), @NamedQuery(name = "Filtropoblacion.findByFilpoPobla", query = "SELECT f FROM Filtropoblacion f WHERE f.filpoPobla = :filpoPobla"), @NamedQuery(name = "Filtropoblacion.findByFilpoReferencia", query = "SELECT f FROM Filtropoblacion f WHERE f.filpoReferencia = :filpoReferencia")})
public class Filtropoblacion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "filpo_id", nullable = false)
    private Integer filpoId;
    @Column(name = "filpo_pregunta")
    private String filpoPregunta;
    @Column(name = "filpo_cuestio")
    private Integer filpoCuestio;
    @Column(name = "filpo_pobla")
    private String filpoPobla;
    @Column(name = "filpo_referencia")
    private String filpoReferencia;

    public Filtropoblacion() {
    }

    public Filtropoblacion(Integer filpoId) {
        this.filpoId = filpoId;
    }

    public Integer getFilpoId() {
        return filpoId;
    }

    public void setFilpoId(Integer filpoId) {
        this.filpoId = filpoId;
    }

    public String getFilpoPregunta() {
        return filpoPregunta;
    }

    public void setFilpoPregunta(String filpoPregunta) {
        this.filpoPregunta = filpoPregunta;
    }

    public Integer getFilpoCuestio() {
        return filpoCuestio;
    }

    public void setFilpoCuestio(Integer filpoCuestio) {
        this.filpoCuestio = filpoCuestio;
    }

    public String getFilpoPobla() {
        return filpoPobla;
    }

    public void setFilpoPobla(String filpoPobla) {
        this.filpoPobla = filpoPobla;
    }

    public String getFilpoReferencia() {
        return filpoReferencia;
    }

    public void setFilpoReferencia(String filpoReferencia) {
        this.filpoReferencia = filpoReferencia;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (filpoId != null ? filpoId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Filtropoblacion)) {
            return false;
        }
        Filtropoblacion other = (Filtropoblacion) object;
        if ((this.filpoId == null && other.filpoId != null) || (this.filpoId != null && !this.filpoId.equals(other.filpoId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Filtropoblacion[filpoId=" + filpoId + "]";
    }

}
